import request from '@/utils/request'

/* 身生成序列号*/
export function generateSeqNo(data) {
  return request({
    url: '/sequenceRule/generateSeqNo',
    method: 'post',
    params: data
  })
}

/* 序列列表分页*/
export function selectSequenceRulePage(data) {
  return request({
    url: '/system/sequenceRule/selectSequenceRulePage',
    method: 'post',
    data: data
  })
}

/* 新增序列*/
export function saveSequenceRule(data) {
  return request({
    url: '/system/sequenceRule/saveSequenceRule',
    method: 'post',
    data: data
  })
}

/* 修改序列*/
export function updateSequenceRule(data) {
  return request({
    url: '/system/sequenceRule/updateSequenceRuleById',
    method: 'post',
    data: data
  })
}

/* 通过id查询序列*/
export function selectSequenceRuleById(data) {
  return request({
    url: '/system/sequenceRule/selectSequenceRuleById/' + data,
    method: 'post'
  })
}

/* 删除序列*/
export function deleteSequenceRule(data) {
  return request({
    url: '/system/sequenceRule/deleteSequenceRule',
    method: 'post',
    data: data
  })
}
